package com.javakc.mes.monthly.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.Month;
import java.util.Date;

@Getter
@Setter
@ApiModel(value = "月份计划表")
@TableName(value = "mes_monthly_plan")
public class Monthly {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id")
    private int id;

    @ApiModelProperty(value = "掘进计划外键")
    @TableField(value = "excavation_id")
    private int excavationId;

    @ApiModelProperty(value = "回采计划外键")
    @TableField(value = "convergence_id")
    private int convergenceId;

    @ApiModelProperty(value = "计划编号")
    @TableField(value = "project_number")
    private String projectNumber;

    @ApiModelProperty(value = "计划单位")
    @TableField(value = "plan_units")
    private String planUnits;

    @ApiModelProperty(value = "计划年份")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "plan_year")
    private Date planYear;

    @ApiModelProperty(value = "计划月份")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "plan_monthly")
    private Date planMonthly;

    @ApiModelProperty(value = "总产量")
    @TableField(value = "total_output")
    private String total_Output;

    @ApiModelProperty(value = "总进尺")
    @TableField(value = "total_footage")
    private String totalFootage;

    @ApiModelProperty(value = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "date")
    private Date date;

    @ApiModelProperty(value = "计划状态")
    @TableField(value = "state_plan")
    private int statePlan;

    @ApiModelProperty(value = "备注")
    @TableField(value = "note")
    private String note;

    @ApiModelProperty(value = "创建时间",example = "2022-12-12 9:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间",example = "2022-12-12 9:00:00")
    @TableField(value = "gmt_modified")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtModified;
}
